-- GENERATED SPELL FOR [Silvermoon Valiant] --


function spell0_33382(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(63010,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33382', 0, 1)
end

function spell1_33382(pUnit, Event) --@Shield-Breaker,n/a--
pUnit:FullCastSpellOnTarget(65147,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33382', 250, 1)
end

function Sorts_33382(pUnit, Event)
local choix_sorts_33382 = math.random(0, 1)
if choix_sorts_33382 == 0 then
pUnit:RegisterEvent('spell0_33382', 1, 1)
end
if choix_sorts_33382 == 1 then
pUnit:RegisterEvent('spell1_33382', 1, 1)
end
end

function mob33382_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33382', math.random(1500, 3000), 1)
end

function mob33382_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33382_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33382_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33382, 1, 'mob33382_Action')
RegisterUnitEvent(33382, 2, 'mob33382_Leave')
RegisterUnitEvent(33382, 3, 'mob33382_Kill')
RegisterUnitEvent(33382, 4, 'mob33382_Die')
